<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>比较运算符</title>
    <script>
      /* 
        比较运算符
        返回布尔类型,用来判断真假
       */
      console.log(2 < 3) //true
      console.log(2 > 3) //false
      console.log(2 <= 3) //true
      console.log(2 >= 3) //false
      console.log(2 != 3) //true

      //注意: ==表示等于用来判断,=表示赋值
      //注意: ==比值,===叫做全等于,用来比值和数据类型
      console.log(2 == '2') //true
      console.log(2 === '2') //false

      //不等于
      console.log(2 != 3)
    </script>
  </head>
  <body></body>
</html>
